/**
 * @description: 单例模式
 * @author: rock
 * @create:
 **/
public class Singl {
    private static String name;
    private int age;


    static {
        System.out.println("静态代码块执行！");
    }
    public Singl(){
        System.out.println("非静态代码块执行！");
    }
    public Singl(int age) {
        this.age = age;
    }
    public static void say(String name){
        System.out.println(name+"is eating");
    }

    public void say1(String name){
        System.out.println(name+"is eating");
    }

    public static void main(String[] args) {

        say("asd");
        Singl s = new Singl();
        s.say1("lll");

    }

}
